import 'package:json_annotation/json_annotation.dart';

part 'user_info.g.dart';

@JsonSerializable()
class UserInfo {
  final String? id;
  final String? avatar;
  final String? nick;
  final String? userName;
  final String? mobile;
  final int? galleryId;
  final dynamic position;
  final dynamic chineseName;
  final dynamic sex;

  const UserInfo({
    this.id,
    this.avatar,
    this.nick,
    this.userName,
    this.mobile,
    this.galleryId,
    this.position,
    this.chineseName,
    this.sex,
  });

  factory UserInfo.fromJson(Map<String, dynamic> json) =>
      _$UserInfoFromJson(json);

  Map<String, dynamic> toJson() => _$UserInfoToJson(this);
}
